#ifndef _ICAR_SOCKET_H
#define _ICAR_SOCKET_H

#ifdef __cplusplus
extern "C" {
#endif



typedef struct _fdset {
	int index;
	int fdsets[1024];
	fd_set rset;
	fd_set allset;
	struct _fdset *next;
} fdsets_t;



fdsets_t *icar_get_first_fdset(void);

void icar_init_fdset(void);

fdsets_t *icar_new_fdset(void);

fdsets_t *icar_fdset_list_append(fdsets_t *);

fdsets_t *icar_fdset_list_find(fdsets_t *);

void icar_fdset_list_delete(fdsets_t *);



#ifdef __cplusplus
}
#endif


#endif
